import httpTool from "../utils/httpTool";
import {message} from "antd";

const axios = httpTool({},(msg) => {
    message.error(msg);
});

export const login = (body) => axios.post("/api/login",body);

export const getList = (params) => axios.get("/api/searchCourse",{params});
